/**
 * 
 */
package org.tinygroup.remoteconfig.placeholder;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yanwj06282
 *
 */
public class PlaceHolderHandlerFactory {

	private static List<PlaceHolderHander> handlers = new ArrayList<PlaceHolderHander>();
	
	static{
		handlers.add(new HostNameHander());
	}
	
	public static String handle(String str){
		
		for (PlaceHolderHander handle : handlers) {
			str = handle.handle(str);
		}
		
		return str;
	}
	
}
